/**
 * 
 */
package es.uab.es2.TimeTracker.nucli;

import java.util.Date;

/** 
 * @author sule
 */
public abstract class Activitat {

	/**
	 * @uml.property  name="dataInicial"
	 */
	private Date dataInicial;

	/**
	 * Getter of the property <tt>dataInicial</tt>
	 * @return  Returns the dataInicial.
	 * @uml.property  name="dataInicial"
	 */
	public Date getDataInicial() {
		return dataInicial;
	}

	/**
	 * Setter of the property <tt>dataInicial</tt>
	 * @param dataInicial  The dataInicial to set.
	 * @uml.property  name="dataInicial"
	 */
	public void setDataInicial(Date dataInicial) {
		this.dataInicial = dataInicial;
	}

	/**
	 * @uml.property  name="projectePare"
	 * @uml.associationEnd  multiplicity="(1 1)" inverse="activitats:es.uab.es2.TimeTracker.nucli.Projecte"
	 */
	protected Projecte projectePare = null;

	/**
	 * Getter of the property <tt>projectePare</tt>
	 * @return  Returns the projectePare.
	 * @uml.property  name="projectePare"
	 */
	public Projecte getProjectePare() {
		return projectePare;
	}

	/**
	 * Setter of the property <tt>projectePare</tt>
	 * @param projectePare  The projectePare to set.
	 * @uml.property  name="projectePare"
	 */
	public void setProjectePare(Projecte p) {
		this.projectePare = p;
	}

		
	/**
	 */
	public Activitat(String nom, String descr, Projecte pare){
	    this.projectePare = pare;
	    projectePare.getActivitats().add(this);
	    // di, df, d

	}

}
